#ifndef TOURCREATOR_H
#define TOURCREATOR_H

#include "tourdefinition.h"
#include "mainwindow.h"

class tourCreator: public QObject
{
    Q_OBJECT
public:
    tourCreator(tourDefinition tourDef);
    void createItself();
    tourDefinition itsDefinition;
private:
    QDir src;
    void createDirectory(QString dirPath);
    void copyFile(QFile *file,QDir dir);
    void copyRequiredFiles();
    QString readTemplate(QString filePath);
    QString fillTemplate(QString tmplt);
    void saveTemplate(QString tmplt,QString filePath);
    int emptyTmpFolder();
Q_SIGNALS:
    void sign_processPercentage(int percentage);
};

#endif // TOURCREATOR_H
